﻿using BlueDot.Mobile.Core;
using TurnOffWorkFlow.Controllers;
using TurnOffWorkFlow.Views;

namespace TurnOffWorkFlow
{
    public class MainApplication : MobileApplication<MainShell>
    {
        #region Fields

        private string applicationName = "Main Application";

        #endregion

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the ScalperInternationalApplication class.
        /// </summary>
        public MainApplication()
        {
            Configuration = new InstantStartConfiguration();
        }

        #endregion

        #region Properties

        public override string Name
        {
            get { return applicationName; }
            set { applicationName = value; }
        }

        #endregion

        #region public

        public override void AddWorkflowDirector()
        {
            //AddNew<MainWorkflowDirector, IWorkflowDirector>();
        }

        #endregion

        #region protected

        protected override void AddCustomServices()
        {
            // TODO: Uncomment the following two lines to enable the BackgroundQueueService
            // The BackgroundQueueService can be used to perform async data loading activities
            // on a separate thread that on completion, calls back to the UI thread using the 
            // action framework
            //var backgroundLoaderService = AddNew<BackgroundQueueService>();
            //backgroundLoaderService.Start();

            AddNew<MainController>();
        }

        #endregion
    }
}